﻿@using X.Scaffolding.Core
@model PhotoBlog.Core.Models.Blog
@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()

    <div class="form-horizontal">
        @Html.ValidationSummary(true)

        <div class="form-group">
            @Html.LabelFor(model => model.HeaderName, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.BootstrapTextBoxFor(model => model.HeaderName)
                @Html.ValidationMessageFor(model => model.HeaderName)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.ContentText, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.HtmlEditorFor(model => model.ContentText)
                @Html.ValidationMessageFor(model => model.ContentText)
            </div>
        </div>

        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Создать" class="btn btn-default btn-primary" />
            </div>
        </div>
    </div>
}

<div>
    @Html.ActionLink("Назад", "Index")
</div>

